import type { AnyObj } from '@/types/global';
import { http } from '@/utils/http';
import { getWxUserId } from '@/utils/auth';

export const saveFeedback = (data : AnyObj) => {
	const wxUserId = getWxUserId();
	return http({
		method: 'POST',
		url: `/wx/feedback/saveFeedback`,
		data: {
			wxUserId,
			...data
		}
	});
}